package STUDENT.NGUYENSANG.OOPs.EX2_BANG_HINH;

public class RanDom {
	private String TenCCDV;
	private String BangTan;
	private String TanSo;
	private int Chon;
	
	public RanDom()
	{
		this.TenCCDV="AAAA";
		this.BangTan="AAAA";
		this.TanSo="AAAA";
	}
	public String getTenCCDV() {
		return TenCCDV;
	}
	public void setTenCCDV(String tenCCDV) {
		TenCCDV = tenCCDV;
	}
	public String getBangTan() {
		return BangTan;
	}
	public void setBangTan(String bangTan) {
		BangTan = bangTan;
	}
	public String getTanSo() {
		return TanSo;
	}
	public void setTanSo(String tanSo) {
		TanSo = tanSo;
	}
	public int getChon() {
		return Chon;
	}
	public void setChon(int chon) {
		Chon = chon;
	}
	public void bangTan()
	{
		//int BangTan;
		switch(getChon())
		{
		case 1: setBangTan("CDMA");
				System.out.println("Bang Tan Danh Ki: "+getBangTan());
				break;
		case 2: setBangTan("WCDMA");
				System.out.println("Bang Tan Danh Ki: "+getBangTan());
				break;
		case 3: setBangTan("GMA");
				System.out.println("Bang Tan Danh Ki: "+getBangTan());
				break;
		}
	}
	public void tanSo()
	{
		switch(getChon())
		{
		case 1: setTanSo("900Mhz-902Mhz");
				System.out.println("Tan  So Danh Ki: "+getTanSo());
				break;
		case 2: setTanSo("903Mhz-905Mhz");
				System.out.println("Tan  So Danh Ki: "+getTanSo());
				break;
		case 3: setTanSo("906Mhz-908Mhz");
				System.out.println("Tan  So Danh Ki: "+getTanSo());
				break;
		}
	}
}
